package icu.groot.alan.dao;

import icu.groot.alan.entity.Report;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface ReportDao {
    int add(Connection connection, int userCode, int announceId, double temperature, String oneselfHealth, String oneselfHealthDetails, String route, String address, String familyHealth, String familyHealthDetails, String anomaly, long reportTime) throws SQLException;

    int checkAdd(Connection connection, int userCode, int announceId) throws SQLException;

    List<Report> getReportByAnnounceId(Connection connection, int announceId) throws SQLException;
}
